package com.oocl.batchdata.util;

import java.util.Collection;
import java.util.Set;
import java.util.TreeSet;

import com.oocl.batchdata.comparator.BirthdayComparator;
import com.oocl.batchdata.pojo.Customer;

public class CustomersSorter {

	public static Set<Customer> sortByBirthday(Collection<Customer> customers) {
		Set<Customer> sortedCustomers = new TreeSet<Customer>(new BirthdayComparator());
		sortedCustomers.addAll(customers);
		return sortedCustomers;
	}
}
